package edu.gatech.cs2340.teamrocket.control.exception;

import edu.gatech.cs2340.teamrocket.model.item.Item;

/**
 * Indicates an Item is missing and it is required to perform some action.
 *
 * @author Joe Tacheron
 */
@SuppressWarnings("serial")
public class ItemRequiredException extends Exception {

    public ItemRequiredException(){
        super();
    }

    public ItemRequiredException(String s){
        super(s);
    }

    /**
     * Constructor with the message that the specified Item was missing.
     *
     * @param i the Item that is missing
     */
    public ItemRequiredException(Item i){
        super("Missing item: " + i);
    }
}
